<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>title</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-sweetalert/1.0.1/sweetalert.js"></script>
    <link href="https://cdn.bootcdn.net/ajax/libs/bootstrap-sweetalert/1.0.1/sweetalert.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.css" rel="stylesheet">
    <script type="text/javascript">
        $(function () {
            swal({
                title: '请求出错了！',
                text: '{{ msg }}',
                type: 'warning',
                showCancelButton: false,
                showConfirmButton: false,
                timer: 1000,
            }, function () {
                window.history.back()
            });
        });
    </script>
</head>
<body>
</body>
</html>